package com.gcms;

/**
 * @ClassName FactoryDemo
 * @Description TODO
 * @Author 2214361854
 * @Date 2022/3/5 22:22
 * @Version 1.0
 */
public class FactoryDemo {
    public static void main(String[] args) {
        Coumputer c1 = FactoryPattern.createComputer("huawei");
        System.out.println(c1);
        Coumputer c2 = FactoryPattern.createComputer("mac");
        System.out.println(c2);
    }
}
